package com.hnzq.cloud.freshsendmessage.consumer;

import com.hnzq.cloud.freshsendmessage.param.CheckPayForOrderParam;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.MessageModel;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component
@RocketMQMessageListener(topic = "afterPayForOrder_topic",
        consumerGroup = "level_group",
        messageModel = MessageModel.BROADCASTING)
@Slf4j
public class CalculateLevelConsumer implements RocketMQListener<CheckPayForOrderParam> {


    @Override
    public void onMessage(CheckPayForOrderParam checkPayForOrderParam) {
        //写算等级逻辑

        log.info("算等级成功");
    }

}
